import type { MockMethod } from 'vite-plugin-mock'
//@ts-ignore
import Mock from 'mockjs'


let caseList = Mock.mock({
    'list|10':[{
        'id|+1':1,
        'name':'@ctitle(3,5)',
        'description':'@ctitle(8,13)',
        'cover':'@',
        'tags|3':[{
            'id|+1':1,
            'name':'@ctitle(3,5)'
        }]
    }]
})



const mock = [{
    url:'/api/case',
    method:'get',
    response:() => {
        return {
            status:200,
            message:'success',
            data:caseList
        }
    }
}]

export default mock
